<script setup lang="ts">
const props = defineProps({
  number: {
    type: String,
    default: "",
  },
  title: {
    type: String,
    default: "",
  },
  description: {
    type: String,
    default: "",
  },

  isPrimary: {
    type: Boolean,
    default: false,
  },
});
</script>

<template>
  <div class="root">
    <div class="wrapper">
      <div :style="isPrimary ? { color: '#1E7CFF' } : {}" class="title-wrapper">
        <span class="number text-2xl">{{ number }}.</span>
        <span class="title text-2xl">{{ title }}</span>
      </div>
      <div>
        <slot name="extra" />
      </div>
    </div>
  </div>
</template>

<style scoped>
.root {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: PingFangSC-regular;
  margin-bottom: 10px;
}

.wrapper {
  display: flex;
  align-items: baseline;
}

.title-wrapper {
  font-weight: bold;
  font-family: PingFangSC-bold;
}

.number {
  /* font-size: 48px; */
}

.title {
  margin-left: 6px;
  margin-right: 30px;
}

.description {
  color: #81838F;
  font-size: 16px;
}
</style>
